package com.twu.soloproject;

import java.io.PrintStream;
import java.io.PrintWriter;

/**
 * Created with IntelliJ IDEA.
 * User: thoughtworker
 * Date: 10/13/13
 * Time: 12:48 PM
 * To change this template use File | Settings | File Templates.
 */
public class ListPlayersMenu implements MenuInterface{


    private PrintStream printStream;
    private League league;

    public ListPlayersMenu(PrintStream printStream, League league) {
        this.printStream = printStream;
        this.league = league;
    }

    public void execute() {

        printStream.println(league.getPlayersList());

    }
}
